package cn.com.byte1024.mapper;

import cn.com.byte1024.entity.VoteLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VoteLogMapper {

    List<VoteLog> selectByVoteIdAndUserId(@Param("voteId") String voteId,@Param("userId") String userId);

    List<VoteLog> selectByUserId(@Param("userId") String userId);
    
    int deleteByVoteId(@Param("voteId") String voteId);
    
    int deleteByPrimaryKey(String voteLogId);

    int insert(VoteLog record);

    int insertSelective(VoteLog record);

    VoteLog selectByPrimaryKey(String voteLogId);

    int updateByPrimaryKeySelective(VoteLog record);

    int updateByPrimaryKey(VoteLog record);
}